﻿using System;
using Microsoft.AspNet.SignalR;
using DashboardApp.DataProviders;

namespace DashboardApp.Hubs
{
    public class DevicesHub : Hub
    {
        public string GetServerTime()
        {
            return DateTime.Now.ToString();
        }

        public void Init()
        {
            DeviceDataProvider.Instance.Update<DevicesHub>(this);
        }
    }
}
